package com.liu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("doctor")
public class Doctor {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String name;
    private String card;
    private String phone;
    private String sex;
    private Integer age;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private String email;
    private Integer department;
    private Integer education;
    private String remark;
}
